package com.neuedu.corejava.ch3.homework;
import java.util.Scanner;

//输入一个年份，判断这个年份是否是闰年（知识点：条件、循环语句
public class test6 {
	public static void main(String[] args) {
		System.out.println("输入一个年份：");
		Scanner sc = new Scanner(System.in);
		int year = sc.nextInt();
		if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
			System.out.println("闰年");
		} else {
			System.out.println("不是闰年");
		}
	}
}
